package com.lefevre.cms.bean.staff;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 系统角色表
 *
 * @author Lefevre
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "sys_roles")
public class SysRoles implements Serializable {
    private static final long serialVersionUID = -7744346111615183222L;

    @Id
    @Column(length = 50)
    @TableId(type = IdType.INPUT)
    private String id;

    /**
     * 名称
     **/
    private String name;

    /**
     * 备注
     **/
    private String remarks;

    /**
     * 当前登录用户权限是否拥有本权限
     **/
    @Transient
    @TableField(exist = false)
    private boolean logonUserPermission = false;

    /**
     * 是否选中
     **/
    @Transient
    @TableField(exist = false)
    private boolean selected = false;

}
